using System;
using System.ComponentModel.Composition;

namespace TicTacToe.Opponents
{
    /// <summary>
    /// Any opponent classes should be decorated with this attribute, which allows them to be located by the opponent catalog.
    /// </summary>
    [AttributeUsage(AttributeTargets.Class, AllowMultiple = false)]
    public class OpponentAttribute : ExportAttribute
    {
        public OpponentAttribute() : base(typeof(IOpponent))
        {
        }
    }
}